/**
 * @(#)OrderCartCoreService.java, 2018/2/12.
 * <p/>
 * Copyright 2018 Kerr Wang, Inc. All rights reserved.
 * KERRWANG PROPRIETARY/CONFIDENTIAL. Use is subject to license terms.
 */
package org.wangzx.exercise.service.core;

import org.wangzx.exercise.enums.BuyStateType;
import org.wangzx.exercise.meta.bean.OrderCartBean;
import org.wangzx.exercise.meta.po.OrderCart;

import java.util.List;

/**
 * @author hzwangzuxiang(ahscwzx@163.com)
 */
public interface OrderCartCoreService {
    public List<OrderCartBean> getByBuyerAndState(long buyerId, BuyStateType buyStateType);

    public OrderCartBean getByBuyerAndItemId(long buyerId, long itemId);

    public OrderCartBean getById(long id);

    public boolean updateOrderCart(OrderCartBean bean);

    public long insert(OrderCartBean bean);
}
